package ipad.asia.entity;

import javax.persistence.*;

import lombok.Data;

import java.math.BigInteger;
import java.time.LocalDateTime;
import lombok.experimental.Accessors;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description  
 * @Author  冯东旺
 * @Date 2021-04-15 11:56:10 
 */

@Entity
@Data
@Accessors(chain = true)
@Table ( name ="orders")
public class Order {

	@Id
   @Column(name = "id" )
	private Integer id;

	/**
	 * 商品id
	 */
   @Column(name = "product_id" )
	private Integer productId;

	/**
	 * 价格
	 */
   @Column(name = "price" )
	private Float price;

	/**
	 * 数量
	 */
   @Column(name = "number" )
	private Integer number;

	/**
	 * 店铺id
	 */
   @Column(name = "shop_id" )
	private Integer shopId;

	/**
	 * 用户id
	 */
   @Column(name = "consumer_id" )
	private Integer consumerId;

	/**
	 * 收货地址
	 */
   @Column(name = "address" )
	private String address;

	/**
	 * 订单状态：0创建为支付，1已经付，2已发货，3已收货，4已退款，5已完成
	 */
   @Column(name = "statues" )
	private Integer statues;

	/**
	 * 创建日期
	 */
   @Column(name = "create_date" )
	private Date createDate;

	/**
	 * 支付时间
	 */
   @Column(name = "pay_date" )
	private Date payDate;

	/**
	 * 用户取消订单
	 */
   @Column(name = "consumer_cancel" )
	private Integer consumerCancel;

	/**
	 * 商家取消订单
	 */
   @Column(name = "shop_cancel" )
	private Integer shopCancel;

	/**
	 * 订单描述
	 */
	@Column(name = "describes" )
	private String describes;
}
